home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ WinNT IoPageLock.xpl < prev    next >
Text File  |  1999-10-16  |  2KB  |  68 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="7"
  3. "COUNT"="5"
  4. "UIPATH"="System\Memory\"
  5. "NAME"="Windows NT I/O Pages"
  6. "VERSION"="1.00"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="512 KB (Default) "
  9. "TEXT 2"="4096 KB (for 32+ MB computers)"
  10. "TEXT 3"="8192 KB (for 64+ MB computers)"
  11. "TEXT 4"="16384 KB (for 128+ MB computers)"
  12. "TEXT 5"="65536 KB (for 256+ MB computers)"
  13. "DESCRIPTION 1"="This option allows you to change the maximum number of bytes that can be locked for I/O (Input/Output) operations."
  14. "DESCRIPTION 2"="If you have some extra RAM and an active file system, you can speed up file system activity by increasing this setting beyond the default 512 KB."
  15. "WARNING"="1"
  16. "AUTHOR"="Xteq Systems"
  17. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  18. "COMMENT 1"="For more information, go to http://www.xteq.com"
  19. "COMMENT 2"="Thanks to CptSiskoX for his help!"
  20.  
  21.  
  22. 'sPC="HKLM\SOFTWARE\NVIDIA Corporation\RIVA TNT\"
  23. sV1="HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Memory Management\IoPageLockLimit" 'DW 
  24. Sub Plugin_Initialize 
  25. If GetWinVer=2 then
  26.    i=RegReadValue(sV1)
  27.  
  28.    if IsEmpty(i)=false then
  29.        if i=0 then SetUiElement 1,true  
  30.        if i=4096 then SetUiElement 2,true  
  31.        if i=8192 then SetUiElement 3,true  
  32.        if i=16384 then SetUiElement 4,true  
  33.        if i=65536 then SetUiElement 5,true  
  34.    end if
  35.  
  36. else
  37.    Call Disable()
  38. end if  
  39. End Sub
  40.  
  41.  
  42. Sub Plugin_CheckData(ElementIndex)
  43. End Sub
  44.  
  45.  
  46.  
  47. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  48.  if GetUIElement(1)=true then i=0
  49.  if GetUIElement(2)=true then i=4096
  50.  if GetUIElement(3)=true then i=8192
  51.  if GetUIElement(4)=true then i=16384
  52.  if GetUIElement(5)=true then i=65536
  53.  
  54.  if isempty(i)=false then
  55.     Call RegWriteValue(sV1,i,2)
  56.     Call Restart()
  57.  else
  58.     Call MsgError("Please select a value!")
  59.  end if
  60. End Sub
  61.  
  62.  
  63. Sub Plugin_Terminate 
  64. End Sub
  65.  
  66.  
  67.  
  68.